package utils;

import java.util.Date;

public class FileInfo {

	private FileType type;
	
	private String name;
	
	private Date date;
	
	private int size;
	public FileInfo() {
	}
	public FileType getType() {
		return type;
	}
	public void setType(FileType type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	@Override
	public String toString() {
		if(type.equals(FileType.CATALOGUE_TYPE))
			return type.toString() + " " + name;
		return type.toString() + " " + name + " " + " " + date.toString() + " size " + size; 
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
}
